package com.lantosec.hmrp.modules.system.vo;

import com.lantosec.hmrp.modules.system.entity.UserAutograph;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 *  VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserAutograph对象", description="")
public class UserAutographVO extends BaseVO<UserAutograph> {
    private static final long serialVersionUID = 1L;


    public UserAutographVO(UserAutograph entity){
        this.userInfoAutographId = entity.getUserInfoAutographId();
        this.userId = entity.getUserId();
        this.uploadId = entity.getUploadId();
        this.mainFlag = entity.getMainFlag();
    }

    @Override
    public UserAutograph convertToEntity(){
        return new UserAutograph(this);
    }


    @ApiModelProperty(value = "用户签名ID")
    private String userInfoAutographId;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "上传附件表ID")
    private String uploadId;

    @ApiModelProperty(value = "是否主签名(0否，1是)")
    private Integer mainFlag;

    @ApiModelProperty(value = "签名照路径")
    private String savePath;
}
